home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 295 < prev    next >
Encoding:
Text File  |  1996-08-05  |  743 b   |  19 lines

  1. Newsgroups: comp.lang.c++
  2. Path: news3.noc.netcom.net!zdc!zippo!usenet
  3. From: timothy@smasher.rs.itd.umich.edu (Timothy Hospedales)
  4. Subject: Can someone help me with objects and functions?
  5. X-Newsreader: WinVN 0.93.11
  6. Sender: usenet@news.zippo.com
  7. Nntp-Posting-Host: 196.3.138.58
  8. Organization: Zippo
  9. Message-ID: <DKM0M3.AoB@news.zippo.com>
  10. Mime-Version: 1.0
  11. Date: Wed, 3 Jan 1996 14:37:14 GMT
  12.  
  13.     When i'm doing a program that gets a file name from the command 
  14. line argument, and then makes an ofstream object to do file IO, when i 
  15. make a sub-function, and try to make it use the object, it wont.... It 
  16. seems like i have to redeclare the object in each function i want to use 
  17. it in... Is this correct, or do can you pass objects to functions?
  18.  
  19.